<?php

class taskpointView extends View {

	function __construct(){
		parent::__construct();
	}

	public function showAddTaskPoint() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('taskpoint/status_json.tpl');
		}
		else {
			$this->setTemplate('taskpoint/status.tpl');
		}
		$this->show();
	}

	public function showUpdateTaskPoint() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('taskpoint/status_json.tpl');
		}
		else {
			$this->setTemplate('taskpoint/status.tpl');
		}
		$this->show();
	}

	public function showDeleteTaskPoint() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('taskpoint/status_json.tpl');
		}
		else {
			$this->setTemplate('taskpoint/status.tpl');
		}
		$this->show();
	}

	public function showGetTaskPoints() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('taskpoint/get_json.tpl');
		}
		else {
			$this->setTemplate('taskpoint/get.tpl');
		}

		$this->show();
	}

	public function showGetUserPoints() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('taskpoint/getuserpoints_json.tpl');
		}
		else {
			$this->setTemplate('taskpoint/getuserpoints.tpl');
		}

		$this->show();
	}

}
?>